lockErrorDialogs
Type
property
Summary
Specifies whether execution errors cause an errorDialog message to be sent, or display the error window.
Syntax
set the lockErrorDialogs to {true | false}
Description
Use the lockErrorDialogs property to handle execution errors in a custom handler, rather than allowing LiveCode to display the standard error window.
If an execution error occurs while the lockErrorDialogs property is set to false, the error window appears. This is the default behavior.
If an execution error occurs while the lockErrorDialogs property is set to true, an errorDialog message is sent to the object whose handler set the lockErrorDialogs to true.
If you set the lockErrorDialogs to true, you should provide an errorDialog handler to notify the user of the error and perform any necessary cleanup.
Examples
set the lockErrorDialogs to true
Related
glossary: property, handle, handler, error, execute, message, execution error, behavior, object
keyword: default
message: errorDialog, scriptParsingError
property: lockErrorDialogs
command: reset, unlock error dialogs
function: interrupt, errorObject
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile